{extend name="public/base"/} {block name="body"}
<style>
    .mui-row.mui-fullscreen>[class*="mui-col-"] {
        height: 100%;
    }

    .mui-col-xs-3,
    .mui-col-xs-9 {
        overflow-y: auto;
        height: 100%;
    }

    .mui-segmented-control .mui-control-item {
        line-height: 50px;
        width: 100%;
    }

    .mui-control-content {
        display: block;
    }

    .mui-segmented-control.mui-segmented-control-inverted .mui-control-item.mui-active {
        background-color: #fff;
    }
    .mui-toast-container {
        bottom: 50%;
        z-index: 999999999999999999;
    }
    .mui-btn-block{
      padding: 5px;
      border: 1px solid #ccc !important;
      margin: 5px;
      -webkit-appearance: none;
    }
    .active .mui-icon{
      display: block !important;
    }
    .paylist.open{
          overflow-y: scroll;
    }

    .info-box{
      background-color: #3190e8;
      padding: .4rem .4rem;
      color:#fff;
    }
    .info-box .headimg {
      padding: 0.5rem 0;
    }
    .info-box .headimg img{

      font-size: 1.6rem;
      line-height: 1.6rem;
      width: 1.6rem;
      border-radius: 50%;
      height: 1.6rem;
      background: #fff;
      display: inline-block;
      vertical-align: middle;

    }
    .balance{
          color: #f90;
    }
    .hongbao{
          color: #ff5f3e;
    }
    .score{
            color: #6ac20b;
    }
    .mui-row {
      background-color: #fff;
    }
    .mui-row .mui-col-xs-6{
      padding: .453333rem 0 .293333rem;
      font-size: .32rem;
      line-height: .32rem;
      border-right: 1px solid #ddd;
    }

    .mui-row .mui-col-xs-6 span{
       font-size: .693333rem;
       line-height: .693333rem;
       font-weight: 700;
    }
</style>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/xsd/css/checkout.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/xsd/css/mui.picker.min.css" />
<header class="mui-bar mui-bar-nav" >
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">会员团购</h1>
</header>
<div class="mui-content" style="    margin-bottom:60px;">
  <div class="info-box mui-text-center">
    <div class="headimg">
      <img src="{$Think.session.user.headimgurl}">
    </div>
    <h4>Hi.{$Think.session.user.nickname}  {notempty name="$Think.session.user.name" }(会员){/notempty}</h4>
  </div>


  <div class="mui-card" style="padding:10px;">
    <h4></h4>
    <ul class="mui-table-view mui-table-view-chevron">
      {volist name="list" id="vo"}
      <li class="mui-table-view-cell">
        <a href="{:url('index/qiye', ['cid'=>$vo.id])}">{$vo.title}</a>
      </li>
      {/volist}
    </ul>
  </div>


</div>


<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js" charset="utf-8"></script>
<script>
    wx.config({$wxoptions|json_encode});
    wx.error(function(e){
        console.log(e);
      });
    wx.ready(function(){
      wx.onMenuShareTimeline({
          title: "限时团购",
          link: "",
          imgUrl: "http://www.xgw0851.com/public/images/getheadimg.png",
      });
      wx.onMenuShareAppMessage({
          title: "限时团购",
          desc: "批发商产地直供不定期团购商品", // 分享描述
          link: "",
          imgUrl: "http://www.xgw0851.com/public/images/getheadimg.png",

      });
    });
</script>


{/block}
{block name="script"}
<script src="__PUBLIC__/xsd/js/mui.picker.min.js"></script>
<script type="text/javascript">

$(function(){

  var subscribe = '{$subscribe}';
  if(subscribe != 1){
    $.get("{:url('index/getSubscribe')}", function(data){
      if(data.value == 0){
        mui.alert('<img src="/public/images/qrcode_for_wx.jpg" style="width:100%;"><p style=" text-align: left;"><b>无法识别二维码</b><br />1、打开微信，点击‘添加朋友’<br />2、点击公众号<br />3、搜索公众号：贵阳鲜果屋<br />4、点击‘关注’，完成</p>', '请长按扫二维码关注公众号');
        return ;
      }
    })
  }

})
</script>
{/block}
